package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户发布广告
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-06-26
 */
@TableName("wz_user_adv")
public class WzUserAdv extends Model<WzUserAdv> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private Long advId;
    /**
     * 用户广告id
     */
    @TableField("adv_user_id")
    private Long advUserId;
    /**
     * 赏金
     */
    private Integer reward;
    /**
     * 排序
     */
    private Integer sort;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public Long getAdvUserId() {
        return advUserId;
    }

    public void setAdvUserId(Long advUserId) {
        this.advUserId = advUserId;
    }

    public Integer getReward() {
        return reward;
    }

    public void setReward(Integer reward) {
        this.reward = reward;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserAdv{" +
        "id=" + id +
        ", advId=" + advId +
        ", advUserId=" + advUserId +
        ", reward=" + reward +
        ", sort=" + sort +
        "}";
    }
}
